package cn.zysuyuan.auth.entity;

import java.util.Map;

/**
 * 载荷对象
 */
public class UserInfo {

    private String id;

    private String username;

    private String headpath;   // 头像地址

    private String nickname;   // 用户昵称

//    private String roles;  // 用户权限

    private String remark;     // 权限备注

    private String email;       //用户邮箱

    private String phone;       //用户联系方式

    private String level;       // 用户级别

    public UserInfo() {
    }

    public UserInfo(String id, String username) {
        this.id = id;
        this.username = username;
    }

    public UserInfo(String id, String username, String headpath, String nickname, String remark, String email, String phone, String level) {
        this.id = id;
        this.username = username;
        this.headpath = headpath;
        this.nickname = nickname;
//        this.roles = roles;
        this.remark = remark;
        this.email = email;
        this.phone = phone;
        this.level = level;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getHeadpath() {
        return headpath;
    }

    public void setHeadpath(String headpath) {
        this.headpath = headpath;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

//    public Map<String, Object> getRoles() {
//        return roles;
//    }
//
//    public void setRoles(Map<String, Object> roles) {
//        this.roles = roles;
//    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", headpath='" + headpath + '\'' +
                ", nickname='" + nickname + '\'' +
                ", remark='" + remark + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", level='" + level + '\'' +
                '}';
    }
}